<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../font-awesome-4.7.0/css/font-awesome.css">
    <style>
        div{
            width:100px;
            height:100px;
            background-color:red;
            color:yellow;
        }
        div p{
            width:50px;
            height:50px;
            /* height:inherit; */  /*height默认不继承父级元素，inherit继承父元素*/
            background-color:blue;
            color:initial;/*color默认继承父级元素，initial继承父级元素*/
        }
        div#one{
            width:100px;
            height:100px;
            margin-bottom:10px;/*外边距margin(元素和元素之间的距离)-底部*/
            background-color:green;
        }
    </style>
</head>
<body>
    <div id="one"></div>
    <div>hello&nbsp;&nbsp;&nbsp;&nbsp;world</div><!--&nbsp 空格-->
    <div>hello
        <p>world</p>
    </div>
    <p>
        春晓
        春眠不觉晓
        处处闻啼鸟
    </p>
    <pre>
        春眠不觉晓
        春眠不觉晓
        处处闻啼鸟
    </pre>
</body>
</html>